﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
namespace="FT.Architecture.Example.Core.Entities.Cars" assembly="FT.Architecture.Example.Core">
  <class name="FT.Architecture.Example.Core.Entities.Cars.ICar" table="car">
    <cache usage ="nonstrict-read-write"/>

    <id name="Id" column="ID_Car">
      <generator class="guid.comb">
      </generator>
    </id>

    <discriminator type="string" column="type"></discriminator>

    <subclass name="CarBase">

      <property name="Brand" />
      <property name="Year" />
      <property name="Colour" />
      <property name="Plate" />

      <many-to-one name="Owner" column="ID_Owner" access="field.camelcase" class="FT.Architecture.Example.Core.Entities.Humans.IHuman" foreign-key="FK_Car_Human"></many-to-one>

      <subclass name="BasicCar" discriminator-value="basic">
        
      </subclass>

    </subclass>
    
    

  </class>
</hibernate-mapping>